<?php
use \PsiFramework\Classes\Util\UI\Printer;
use \PsiFramework\Classes\Util\UI\HTML;

$style = $response->getAttribute("object");
$objectType = $response->getAttribute("objectType");
?>
<form
    class="editForm"
    method="POST"
    action="<?php Printer::display(HTML::linkHref('action=CMS.Save&type='.$objectType));?>">
    <?php
    if ($style != null) {
    ?>
    <input
        type="hidden"
        name="id"
        value="<?php Printer::display($style->getId()); ?>" />
    <?php
    }
    ?>
    <div class="label">
        <span class="titre">Nom :</span>
        <input
            class="firstInput"
            type="text"
            name="name"
            value="<?php if ($style != null) Printer::display($style->getName()); ?>" />
    </div>
    <div class="label">
        <span class="titre">CSS :</span>
        <textarea rows="20" cols="75" class="firstInput" name="css"><?php
            if ($style != null) echo $style->getCss();
        ?></textarea>
    </div>
    <input type="submit" value="OK" />
</form>
